﻿@model List<_5._6._2015CSharpDay08FullCRUDSingleton.Models.Movie>
<br />
    <div>
        <a href="/Home/AddMovie"><button class=" btn btn-danger"> Add a Video</button></a>
        
    </div>

@foreach (var movie in Model)
{
    <div class="container well-lg">
        <div class="row">
            <div class="col-sm-5">
                <iframe width="560" height="315" src="@movie.MovieUrl" frameborder="0" allowfullscreen></iframe>
            </div>
                <div class="col-sm-10">
                    <h5><i>Title: </i>@movie.Title</h5>
                    <h5><i>Genre: </i>@movie.Genre</h5>
                    <a class="btn btn-block" href="/Home/EditMovie/@movie.Id"><button class="btn arrow">Edit</button></a>
                    <a class="btn btn-block" href="/Home/DeleteMovie/@movie.Id"><button class=" btn glyphicon-book">Delete</button></a>
             
                </div>
        </div>
    </div>

}